import collection.HashMap2;
import sun.misc.Launcher;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLClassLoader;
import java.util.*;

class Tw {

    public static void main(String[] args) throws ClassNotFoundException {
        /*A a = new A();
        HashMap<A, String> m = new HashMap();
        m.put(a, "hello");
        System.out.println(m.put(a, "hi"));
        System.out.println(m);
        System.out.println(m.get(a));*/
        System.out.println(Integer.MAX_VALUE+1);
        String s = "hello";
        String s2 = "he" + new String("llo");
        String s4 = "he" + "llo";
        String s3 = "hello";
        System.out.println(s==s3);
        System.out.println(s==s2);
        System.out.println(s==s4);
        System.out.println(s2.hashCode());
        System.out.println(s.hashCode());
        HashMap2 m = new HashMap2();
        m.put("aa","aa");
        new HashMap<>().put("","");
        System.out.println(m);
        LinkedHashMap map = new LinkedHashMap();
        map.put("a","aa");
        map.put("c","cc");
        map.put("b","bb");


        Collection conn = map.values();
        System.out.println(conn);

        System.out.println(map);

        float f = 3;
        System.out.println(f);
        ClassLoader c = null;
        URLClassLoader urlClassLoader  = null;
        Launcher l;
        new A().a();
    }
    public static String bytesToHexString(byte[] src){
        StringBuilder stringBuilder = new StringBuilder("");
        if (src == null || src.length <= 0) {
            return null;
        }
        for (int i = 0; i < src.length; i++) {
            int v = src[i] & 0xFF;
            String hv = Integer.toHexString(v);
            if (hv.length() < 2) {
                stringBuilder.append(0);
            }
            stringBuilder.append(hv);
        }
        return stringBuilder.toString();
    }
}
class A{
public void a(){
    System.out.println(this.getClass().getClassLoader());

}
}






